package com.poem.service;

import com.poem.dto.PoemsDTO;
import com.poem.dto.PoemsPageQueryDTO;
import com.poem.entity.Poems;
import com.poem.result.PageResult;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: PoemsService
 * @Author: YLY
 * @Description:
 * @Date: 2025/10/18
 * @Version: 1.0
 */
public interface PoemsService {
    List<Poems> getAllPoems();

    void addPoem(PoemsDTO poemsDTO);

    void updatePoem(PoemsDTO poemsDTO);

    void deleteBatch(List<Long> id);

    PageResult<Poems> pageQuery(PoemsPageQueryDTO poemsPageQueryDTO);

    Poems getById(Long id);

    Map<Long, Integer> countByType(List<Long> ids);
}
